import amesu from "../../model/bot/amesu";
import { MsgAction, Tpl_copy_default } from "../../shared/master/MsgAction";
import { style_default } from "../../style/default";

export default function(data:MsgAction){
    let d = data.data as Tpl_copy_default;
    // amesu.sendText(data.tolocation,str || '错误的内容');
    let style=new style_default();
    style.addLine(`📄${d.title}`)
    style.addLine(d.desc)
    style.addLine(`📄${d.gift_title}`)
    for (let i = 0; i < d.gift_list.length; i++) {
        const element = d.gift_list[i];
        style.addLine(element)
    }
    style.addLine(`⚔️开始发送:${d.enter_str}`)
    amesu.sendText(data.tolocation,style.end())
}